package com.demo9;

public class Test {
    public static void main(String[] args) {
        //创建对象并赋值调用
        Manager manager = new Manager("001","zhangsan",15000,8000);
        System.out.println(manager.getId()+","+manager.getName()+","+manager.getSalary()+","+manager.getBouns());
        manager.work();
        manager.eat();
        Cook cook = new Cook();
        cook.setId("002");
        cook.setName("lishi");
        cook.setSalary(800);
        System.out.println(cook.getId()+","+cook.getName()+","+ cook.getSalary());
        cook.work();
        cook.eat();
    }
}
